package com.gxa.shop.service.order;

import com.gxa.shop.bean.dto.OrderDto;
import com.gxa.shop.bean.pojo.OrderItems;
import com.gxa.shop.bean.pojo.Orders;
import com.gxa.shop.bean.vo.CheckInfoVo;
import com.gxa.shop.bean.vo.OrderMyVo;
import com.gxa.shop.bean.vo.OrderVo;


import java.util.List;

/**
 * com.gxa.shop.service.order
 * User: coma
 * Description:
 * Version: V1.0
 */
public interface OrderService {
    CheckInfoVo getCheckInfo(Integer userId, Integer addressId);
    Integer createOrder(Orders orders, List<OrderItems> orderItems);
    List<Orders> getOrders(Integer orderId);
    List<OrderVo> selectOrder(OrderDto orderDto);
    int updateOrder(OrderDto orderDto);

    Long totalAllOrder(OrderDto orderDto);

    List<OrderMyVo> findMyOrder(Integer userId, Integer status, Integer page, Integer pageSize);

    Integer totalOrder(Integer userId, Integer status);
}
